<?php 
$mysqli = new mysqli($dbhost, $dbuser, $dbpwd, $dbName);
if (!$mysqli->set_charset("utf8")) {printf("Error loading character set utf8: %s\n", $mysqliTwo->error);}

$aid=str_replace('.html', '', $urlPath[1]);
$sql="select * from ey_archives where aid='".$aid."'  limit 0,1 ";
$query = $mysqli->query($sql);
$arInfo=array();
if($query->num_rows>0){
    $getData=$query->fetch_assoc();
    $sql="select content from ey_article_content where aid='".$aid."'  limit 0,1 ";
    $query = $mysqli->query($sql);
    $getContent=$query->fetch_assoc();
    
}
$sql="select id,typename,dirname from ey_arctype ";
$query = $mysqli->query($sql);
$catList=array();
if($query->num_rows>0){
    while ($list=$query->fetch_assoc()){
        if(strpos($list['typename'],'en') !== false){}else{
            $catList[$list['id']]=$list;
        }
    }
}
$mysqli->close();

include $cmsPath.'/template/pc/soft.php';

 